<template>
  <div>
    父组件
    <Son :money="money" :car="car" @xiu="handleXiu"></Son>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import Son from './components/Son.vue';

const money = ref(10000);
const car = ref('五菱宏光MINI');
const handleXiu = (val) => {
  console.log(val);
  money.value += val;
};
</script>
